''' <summary>
''' La interfaz Connection provee los metodos y propiedades ensenciales para calquier conexion.
''' </summary>

Public Interface Connection
    ''' <summary>
    ''' Envia un Package a traves de la conexion.
    ''' </summary>
    ''' <param name="package">Package con los datos a enviar</param>
    Sub Send(ByVal package As Package)
    Sub Send(ByVal message As String)
    Sub Connect()
    ''' <summary>
    ''' Host al cual se conecta
    ''' </summary>
    ''' <value>Net.IPAddress</value>
    ''' <returns>Net.IPAddress</returns>    
    Property Host() As Net.IPAddress
    ''' <summary>
    ''' Puerto al cual se conecta
    ''' </summary>
    ''' <value>Integer</value>
    ''' <returns>Integer</returns>
    Property Port() As Integer
    ''' <summary>
    ''' Cerramos la conexion
    ''' </summary>
    Sub close()
    Event dataReceived(ByVal data As Byte())
    Event dataSent(ByVal data As String)


End Interface
